# Maintainer: Simon Zeni <simon@bl4ckb0ne.ca>
pkgname=harec
pkgver=0_git20231128
_commit=ec3193e3870436180b0f3df82b769adc57a1c099
pkgrel=0
pkgdesc="The Hare compiler"
url="https://harelang.org"
arch="x86_64 aarch64 riscv64"
license="GPL-3.0-only"
depends="qbe"
source="
	$pkgname-$_commit.tar.gz::https://git.sr.ht/~sircmpwn/harec/archive/$_commit.tar.gz
"
builddir="$srcdir/$pkgname-$_commit"

build() {
	./configure --prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
2962af65f95d3db51432cea0b08b963a713c746a856623be6162873a34cc558577fd4673d1c502fced2582331886f5269c79381a4a26a8d743dc1a9fe7aefda0  harec-ec3193e3870436180b0f3df82b769adc57a1c099.tar.gz
"
